package com.hourse.app.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @作者：lichenguang
 * @描述：【账户每日持仓数据】
 * @创建：2022/2/24 18:31
 */
@Data
@Entity
@Table(name = "rms_balance_day")
public class BalanceDayEntity implements Serializable {

  @Id
  @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator")
  @GeneratedValue(generator = "uuid")
  @Column(columnDefinition = "varchar(100) COMMENT '主键'")
  private String id;

  @Column(updatable = false, columnDefinition = "datetime COMMENT '创建时间'")
  private Date createTime;

  @Column(updatable = false, columnDefinition = "varchar(40) COMMENT '创建人'")
  private String createUser;

  @Column(updatable = false, columnDefinition = "datetime COMMENT '修改时间'")
  private Date updateTime;

  @Column(updatable = false, columnDefinition = "varchar(40) COMMENT '修改人'")
  private String updateUser;

  @ApiModelProperty(value = "用户ID", required = true)
  private String userId;

  @ApiModelProperty(value = "币种", required = true)
  private String code;

  @ApiModelProperty(value = "中币持仓", required = true)
  private String zb;

  @ApiModelProperty(value = "欧易持仓", required = true)
  private String okx;

  @ApiModelProperty(value = "韩国持仓", required = true)
  private String upbit;

  @ApiModelProperty(value = "持仓总量")
  private String total;

  @ApiModelProperty(value = "日")
  private String date;
}
